import request from '@/utils/request'

const api_name = '/ucenter/interest'

export default {
  // 获取所有兴趣信息
  getAllInterests() {
    return request({
      url: `${api_name}`,
      method: 'get'
    })
  },
  // 当前用户更新兴趣
  updateInterests(ids) {
    return request({
      url: `${api_name}`,
      method: 'put',
      data: ids
    })
  }
}
